import { decrpytMsg, encryptMsg } from './libs/wx/crypt'

const raw = 'abcdefg'
const aes_key = 'a105e4dub2qej20zkl1860skktxqq4boa105e4dub2q'
const app_id = 'wx2379cb584e9d927f'

const encrypted = encryptMsg(raw, aes_key, app_id)
const decrypted = decrpytMsg(encrypted, aes_key)

console.log(decrypted)

console.log({
    msg: raw === decrypted.decrypted,
    app_id: app_id === decrypted.app_id,
})
